<template>
  <div class="home">
    {{banner}}
  </div>
</template>

<script>

import {onMounted,ref} from 'vue'
import {getHomeAllDate} from 'network/home.js'
export default {
  components: {
  },
  setup(){
    const banner=ref([])
    onMounted(()=>{
      getHomeAllDate().then(res=>{
        
        banner.value=res.slides
      }).catch(err=>{
        console.log(err);
      })
    })
    return{banner}
  }
}
</script>
